<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Collision Checker: collision::LineSegment Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Collision Checker
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacecollision.html">collision</a></li><li class="navelem"><a class="el" href="classcollision_1_1_line_segment.html">LineSegment</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classcollision_1_1_line_segment-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">collision::LineSegment Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="line__segment_8h_source.html">line_segment.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7305df15c861908cc357cdf290f4525e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#a7305df15c861908cc357cdf290f4525e">LineSegment</a> (const Eigen::Vector2d &amp;<a class="el" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>, const Eigen::Vector2d &amp;<a class="el" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>)</td></tr>
<tr class="separator:a7305df15c861908cc357cdf290f4525e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6486b56a92def17c1a972f307cd1513a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#a6486b56a92def17c1a972f307cd1513a">LineSegment</a> (<a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="el" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>, <a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> <a class="el" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>)</td></tr>
<tr class="separator:a6486b56a92def17c1a972f307cd1513a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc1088dfbcabbc772b6287c9d99a7e8a"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#acc1088dfbcabbc772b6287c9d99a7e8a">LineSegment</a> (const <a class="el" href="classcollision_1_1_line_segment.html">LineSegment</a> &amp;ls2)</td></tr>
<tr class="separator:acc1088dfbcabbc772b6287c9d99a7e8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b87aae8650c9555495a23dd374ac338"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a> () const</td></tr>
<tr class="separator:a4b87aae8650c9555495a23dd374ac338"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e28d7aab313a21ad8d88896c2089f14"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a> () const</td></tr>
<tr class="separator:a6e28d7aab313a21ad8d88896c2089f14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79d6f50f5d701124725e30a3a9d0f9d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#a79d6f50f5d701124725e30a3a9d0f9d8">set_point_1</a> (const <a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> &amp;<a class="el" href="classcollision_1_1_line_segment.html#a4b87aae8650c9555495a23dd374ac338">point1</a>)</td></tr>
<tr class="separator:a79d6f50f5d701124725e30a3a9d0f9d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf5489d24a478b9e499653eb07f352f7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#aaf5489d24a478b9e499653eb07f352f7">set_point_2</a> (const <a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> &amp;<a class="el" href="classcollision_1_1_line_segment.html#a6e28d7aab313a21ad8d88896c2089f14">point2</a>)</td></tr>
<tr class="separator:aaf5489d24a478b9e499653eb07f352f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acde5b5ccc7718774b9fd8f93395f1a69"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#acde5b5ccc7718774b9fd8f93395f1a69">swap</a> (void)</td></tr>
<tr class="separator:acde5b5ccc7718774b9fd8f93395f1a69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51097f54b96e8dd047cc3be7b87ce807"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#a51097f54b96e8dd047cc3be7b87ce807">intersect</a> (<a class="el" href="classcollision_1_1_line_segment.html">LineSegment</a> segment2, std::vector&lt; Eigen::Vector2d &gt; &amp;inters) const</td></tr>
<tr class="separator:a51097f54b96e8dd047cc3be7b87ce807"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a220e69c8610d77aa5e4ce1df8314efb8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#a220e69c8610d77aa5e4ce1df8314efb8">point1_</a></td></tr>
<tr class="separator:a220e69c8610d77aa5e4ce1df8314efb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add8c4f816499c617c90e43511ca3ee32"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcollision_1_1_line_segment.html#add8c4f816499c617c90e43511ca3ee32">point2_</a></td></tr>
<tr class="separator:add8c4f816499c617c90e43511ca3ee32"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00019">19</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7305df15c861908cc357cdf290f4525e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7305df15c861908cc357cdf290f4525e">&#9670;&nbsp;</a></span>LineSegment() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">collision::LineSegment::LineSegment </td>
          <td>(</td>
          <td class="paramtype">const Eigen::Vector2d &amp;&#160;</td>
          <td class="paramname"><em>point1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Eigen::Vector2d &amp;&#160;</td>
          <td class="paramname"><em>point2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00021">21</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="a6486b56a92def17c1a972f307cd1513a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6486b56a92def17c1a972f307cd1513a">&#9670;&nbsp;</a></span>LineSegment() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">collision::LineSegment::LineSegment </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a>&#160;</td>
          <td class="paramname"><em>point1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a>&#160;</td>
          <td class="paramname"><em>point2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00027">27</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="acc1088dfbcabbc772b6287c9d99a7e8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc1088dfbcabbc772b6287c9d99a7e8a">&#9670;&nbsp;</a></span>LineSegment() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">collision::LineSegment::LineSegment </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classcollision_1_1_line_segment.html">LineSegment</a> &amp;&#160;</td>
          <td class="paramname"><em>ls2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00031">31</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a51097f54b96e8dd047cc3be7b87ce807"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51097f54b96e8dd047cc3be7b87ce807">&#9670;&nbsp;</a></span>intersect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool collision::LineSegment::intersect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcollision_1_1_line_segment.html">LineSegment</a>&#160;</td>
          <td class="paramname"><em>segment2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; Eigen::Vector2d &gt; &amp;&#160;</td>
          <td class="paramname"><em>inters</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00049">49</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="a4b87aae8650c9555495a23dd374ac338"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b87aae8650c9555495a23dd374ac338">&#9670;&nbsp;</a></span>point1()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> collision::LineSegment::point1 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00035">35</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="a6e28d7aab313a21ad8d88896c2089f14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6e28d7aab313a21ad8d88896c2089f14">&#9670;&nbsp;</a></span>point2()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> collision::LineSegment::point2 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00037">37</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="a79d6f50f5d701124725e30a3a9d0f9d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79d6f50f5d701124725e30a3a9d0f9d8">&#9670;&nbsp;</a></span>set_point_1()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void collision::LineSegment::set_point_1 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> &amp;&#160;</td>
          <td class="paramname"><em>point1</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00039">39</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="aaf5489d24a478b9e499653eb07f352f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf5489d24a478b9e499653eb07f352f7">&#9670;&nbsp;</a></span>set_point_2()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void collision::LineSegment::set_point_2 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> &amp;&#160;</td>
          <td class="paramname"><em>point2</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00041">41</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="acde5b5ccc7718774b9fd8f93395f1a69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acde5b5ccc7718774b9fd8f93395f1a69">&#9670;&nbsp;</a></span>swap()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void collision::LineSegment::swap </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00043">43</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a220e69c8610d77aa5e4ce1df8314efb8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a220e69c8610d77aa5e4ce1df8314efb8">&#9670;&nbsp;</a></span>point1_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> collision::LineSegment::point1_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00064">64</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<a id="add8c4f816499c617c90e43511ca3ee32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add8c4f816499c617c90e43511ca3ee32">&#9670;&nbsp;</a></span>point2_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structcollision_1_1raytrace_1_1_point.html">raytrace::Point</a> collision::LineSegment::point2_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="line__segment_8h_source.html#l00065">65</a> of file <a class="el" href="line__segment_8h_source.html">line_segment.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cpp/collision/include/collision/<a class="el" href="line__segment_8h_source.html">line_segment.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
